package DAO.Util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {

	private static final String url = "jdbc:postgresql://localhost:5432/auditoria";
	private static final String usuario = "postgres";
	private static final String senha = "postgres";

	public static Connection getConnection() throws SQLException{

		try {
			Class.forName("org.postgresql.Driver");
			return DriverManager.getConnection(url, usuario, senha);
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return null;
	}

}
	